<?php
/*
  +----------------------------------------------------------------------+
  | Name:districtFun.m
  +----------------------------------------------------------------------+
  | Comment:处理地区的函数
  +----------------------------------------------------------------------+
  | Author:Evoup     evoex@126.com                                                     
  +----------------------------------------------------------------------+
  | Create:2012年 7月26日 星期四 10时41分45秒 CST
  +----------------------------------------------------------------------+
  | Last-Modified: 2012-07-26 10:42:04
  +----------------------------------------------------------------------+
 */
$GLOBALS['httpStatus'] = __HTTPSTATUS_BAD_REQUEST; // 默认返回400 
header("Content-type: application/json; charset=utf-8");

$err = false;
switch ($GLOBALS['selector']) {
case(__SELECTOR_MASS):
    if (!$err) {
        $GLOBALS['httpStatus'] = __HTTPSTATUS_OK; 
        $distruct=Array(
            '0000' => '未知', '0001' => '北京', '0002' => '上海', '0003' => '天津', '0004' => '重庆', '0005' => '黑龙江', '0006' => '吉林', '0007' => '辽宁', '0008' => '内蒙', '0009' => '河北', '0010' => '河南', '0011' => '广东', '0012' => '湖北', '0013' => '山东', '0014' => '浙江', '0015' => '安徽', '0016' => '江苏', '0017' => '江西', '0018' => '云南', '0019' => '宁夏', '0020' => '青海', '0021' => '山西', '0022' => '陕西', '0023' => '湖南', '0024' => '福建', '0025' => '甘肃', '0026' => '四川', '0027' => '广西', '0028' => '贵州', '0029' => '海南', '0030' => '西藏', '0031' => '新疆', '0032' => '香港', '0033' => '澳门', '0034' => '台湾');
    }
    echo json_encode($distruct);
    break;
default:
    break;
}
?>
